﻿@model IEnumerable<RTW.Models.TDepartment>

@{
    Layout = null;
}

<div id="dBak1" class="form-control" style="height: 295px; overflow-y: auto; padding-top: 10px; text-align: left;">
    <div style="text-align: right;">
        <a class="btn btn-sm btn-warning btn-outline" onclick="SelAll()">全选</a>
        <a class="btn btn-sm btn-warning btn-outline" onclick="SelNo()">反选</a>
    </div>

    @foreach (var item in Model)
    {
        <h4><i class="fa fa-institution"></i>&nbsp;@item.DMName</h4>
        @foreach (var role in item.Roles)
        {
            <div class="checkbox i-checks" style="float: left; margin-right: 5px; width: 150px; text-align: left; margin-top: 0px;">
                <label style="padding-left: 0px;">
                    <input type="checkbox" value="@role.ID" /><i></i>@role.RName
                </label>
            </div>
        }
        <div style="height: 20px; clear: both;"></div>
    }
</div>

